package com.example.spring.day1.service;

/*
 *   UserService接口的实现类
 * */
import com.example.spring.day1.dao.UserDao;

public class UserServiceImpl implements UserService{
    private UserDao userDao;

    /*
    *   使用Set进行动态实现直的注入
    * */
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void getUser() {
        userDao.getuser();
    }


}
